﻿using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Authorization;
using System.Security.Claims;
using Vav.Data.TransferTypes;

namespace Vav.Api.Authorization
{
    public class RoleAttribute : TypeFilterAttribute
    {
        public RoleAttribute(params RoleEnum[] roles) : base(typeof(RoleFilter))
        {
            Arguments = new object[] { roles };
        }
    }
    public class AuthAttribute : TypeFilterAttribute
    {
        public AuthAttribute() : base(typeof(AuthFilter))
        {

        }
    }
}
